# -*- coding: utf8 -*-
import pywapi
import sys
from datetime import datetime
location_id = sys.argv[1]

#get weather
weather = pywapi.get_weather_from_google(location_id)
print 'city: ' + weather['forecast_information']['city']

forecast_time = datetime.strptime(weather['forecast_information']['current_date_time'], "%Y-%m-%d %H:%M:%S +0000")
print 'current_date_time: ' + weather['forecast_information']['current_date_time']
print 'condition: ' + weather['current_conditions']['condition']
print 'humidity: ' + weather['current_conditions']['humidity']
print 'current conditions: ' + weather['current_conditions']['temp_c'] + 'C'
